﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuJianCX_DXS.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.ChaXunGL.QuJianCX_DXS" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet" />
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
            font-size: 12px;
        }

        #img table tr td div {
            cursor: pointer;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            // $("#condition").css("height", height);
        });



        function rowClicktab1() {
            if (gvYongHuXX.GetFocusedRowIndex() != -1) {
                //alert(gvYongHuXX.GetRowKey(gvYongHuXX.GetFocusedRowIndex()));
                if (gvYongHuXX.GetFocusedRowIndex() != -1) {
                    hdCollection.Set("ID", gvYongHuXX.GetRowKey(gvYongHuXX.GetFocusedRowIndex()));
                    //loadpanel1.Show();
                    ASPxCallback1.PerformCallback("setinfo");
                }
            }
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (type == "setinfo") {
               
            }
        }
        function ChangeGD2() {
            //BtnQN2.OnClick();
            if (gvGrid1Tab2.GetFocusedRowIndex() != -1) {
                if (gvGrid1Tab2.GetFocusedRowIndex() != -1) {
                    gvGrid2Tab2.PerformCallback(gvGrid1Tab2.GetRowKey(gvGrid1Tab2.GetFocusedRowIndex()));
                }
            }

        }

       

        function XSorYC() {
            $("#divInfo").toggle();
            if ($("#divInfo").css('display') == 'none') {
                AdjustSize(170, gvYongHuXX);
            }
            else {
                AdjustSize(400, gvYongHuXX);
            }
        }


    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            区间水量查询
        </div>
        <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <%--<dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>--%>
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <div style="border: 1px solid #d0e4fe">
                        <table>
                            <tr>
                                <td style="width:70px;"><span style="font-size: 12px;">水量年：</span></td>
                                <td style="width:70px;">
                                    <dx:ASPxComboBox runat="server" ID="cmbYear" Width="100%">
                                    </dx:ASPxComboBox>
                                </td>
                                <td style="width:70px;">
                                    <asp:Panel runat="server" ID="Panel8">
                                        <dx:ASPxComboBox runat="server" ID="cmbMonth" Width="80%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td>-&nbsp;</td>
                                <td style="width:70px;">
                                    <dx:ASPxComboBox runat="server" ID="cmbYear2" Width="100%">
                                    </dx:ASPxComboBox>
                                </td>
                                <td style="width:70px;">
                                    <asp:Panel runat="server" ID="Panel9">
                                        <dx:ASPxComboBox runat="server" ID="cmbMonth2" Width="80%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>

                                <td style="width:70px;text-align:right;"><span style="font-size: 12px;">环内环外：</span></td>
                                <td style="width:90px;">
                                    <asp:Panel runat="server" ID="Panel1">
                                        <dx:ASPxComboBox runat="server" ID="cmbHuanNeiHW" Width="80%" AutoPostBack="false">
                                            <Items>
                                                <dx:ListEditItem Text=" " Value="0" Selected="true" />
                                                <dx:ListEditItem Text="外环线内" Value="1" />
                                                <dx:ListEditItem Text="外环线外" Value="2" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width:70px;text-align:right;"><span style="font-size: 12px;">行政区：</span></td>
                                <td style="width:90px;">
                                    <asp:Panel runat="server" ID="Panel2">
                                        <dx:ASPxComboBox runat="server" ID="cmbXingZhengQ" Width="80%">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="0" Selected="true" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width:70px;text-align:right;"><span style="font-size: 12px;">业务员：</span></td>
                                <td style="width:90px;">
                                    <asp:Panel runat="server" ID="Panel3">
                                        <dx:ASPxComboBox runat="server" ID="cmbYeWuY" Width="80%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td>&nbsp;&nbsp;</td>
                                <td>
                                    <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" UseSubmitBehavior="false" Text="查询" OnClick="btnChaXun_Click"  >
                                        <ClientSideEvents Click="function(s,e){LoadPanel.Show();}" />
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL" UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s,e){btnExport.OnClick();}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="float: left; width: 15%;" id="condition">
                        <fieldset style="border: 1px solid #d0e4fe">
                            <legend>查询条件</legend>
                            <div>
                                <div>
                                    <table style="height: 200px; width: 100%;">
                                        <tr>
                                            <td>

                                                <dx:ASPxCheckBox runat="server" ID="chkYongHuH" Checked="false" Text="用户号" ClientInstanceName="chkYongHuH"></dx:ASPxCheckBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="100%">
                                                    <ClientSideEvents GotFocus="function(s,e){chkYongHuH.SetChecked(true);}" />
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxCheckBox runat="server" ID="chkYongHuM" Text="用户名" ClientInstanceName="chkYongHuM"></dx:ASPxCheckBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuM" Width="100%">
                                                    <ClientSideEvents GotFocus="function(s,e){chkYongHuM.SetChecked(true);}" />
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxCheckBox runat="server" ID="chkYongHuDZ" Text="用户地址" ClientInstanceName="chkYongHuDZ"></dx:ASPxCheckBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuDZ" Width="100%">
                                                    <ClientSideEvents GotFocus="function(s,e){chkYongHuDZ.SetChecked(true);}" />
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxCheckBox runat="server" ID="rabQuShuiYT" Text="取水用途" ClientInstanceName="rabQuShuiYT"></dx:ASPxCheckBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxComboBox ID="cmbQuShuiYT" ClientInstanceName="cmbQuShuiYT" runat="server" ValueType="System.String" Width="100%">
                                                    <ClientSideEvents GotFocus="function(s,e){rabQuShuiYT.SetChecked(true);}" />
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxCheckBox runat="server" ID="rabHangYeLX" Text="行业分类" ClientInstanceName="rabHangYeLX"></dx:ASPxCheckBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cmbHangYeLX" ClientInstanceName="cmbHangYeLX" runat="server" ValueType="System.String" Width="100%">
                                                        <ClientSideEvents GotFocus="function(s,e){rabHangYeLX.SetChecked(true);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabGuanLiBM" Text="管理部门" ClientInstanceName="rabGuanLiBM"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cbmGuanLiBM" ClientInstanceName="cbmGuanLiBM" runat="server" Width="100%">
                                                        <ClientSideEvents GotFocus="function(s,e){rabGuanLiBM.SetChecked(true);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabShuiJia" Text="水价" ClientInstanceName="rabShuiJia"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td style="width: 30%">
                                                                <dx:ASPxComboBox ID="cmbShuiJia" ClientInstanceName="cmbShuiJia" runat="server" ValueType="System.String" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="=" Value="1" />
                                                                        <dx:ListEditItem Text=">" Value="2" />
                                                                        <dx:ListEditItem Text=">=" Value="3" />
                                                                        <dx:ListEditItem Text="<" Value="4" />
                                                                        <dx:ListEditItem Text="<=" Value="5" />
                                                                        <dx:ListEditItem Text="<>" Value="6" />
                                                                    </Items>
                                                                    <ClientSideEvents GotFocus="function(s,e){rabShuiJia.SetChecked(true);}" />
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                            <td style="width: 70%">
                                                                <dx:ASPxTextBox ID="txtShuiJia" ClientInstanceName="txtShuiJia" runat="server" Width="100%">
                                                                    <ClientSideEvents GotFocus="function(s,e){rabShuiJia.SetChecked(true);}" KeyUp="function(s,e){inputFloat(s);}" />
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabLiuYu" Text="流域" ClientInstanceName="rabLiuYu"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cmbLiuYu" ClientInstanceName="cmbLiuYu" runat="server" ValueType="System.String" Width="100%">
                                                        <ClientSideEvents GotFocus="function(s,e){rabLiuYu.SetChecked(true);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabShuiLiFP" Text="水利分片" ClientInstanceName="rabShuiLiFP"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cmbShuiLiFP" ClientInstanceName="cmbShuiLiFP" runat="server" ValueType="System.String" Width="100%">
                                                        <ClientSideEvents GotFocus="function(s,e){rabShuiLiFP.SetChecked(true);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabShuiZiYFQ" Text="水资源分区" ClientInstanceName="rabShuiZiYFQ"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cmbShuiZiYFQ" ClientInstanceName="cmbShuiZiYFQ" runat="server" ValueType="System.String" Width="100%">
                                                        <ClientSideEvents GotFocus="function(s,e){rabShuiZiYFQ.SetChecked(true);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabShouFeiFS" Text="收费方式" ClientInstanceName="rabShouFeiFS"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cmbShouFeiFS" ClientInstanceName="cmbShouFeiFS" runat="server" ValueType="System.String" Width="100%">
                                                        <Items>
                                                            <dx:ListEditItem Text="" Value="-1" />
                                                            <dx:ListEditItem Text="托收" Value="1" />
                                                            <dx:ListEditItem Text="不托收" Value="0" />
                                                        </Items>
                                                        <ClientSideEvents GotFocus="function(s,e){rabShouFeiFS.SetChecked(true);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabKaiHuHM" Text="开户户名" ClientInstanceName="rabKaiHuHM" ClientVisible="false"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxTextBox runat="server" ID="txtKaiHuHM" Width="100%" ClientVisible="false">
                                                        <ClientSideEvents GotFocus="function(s,e){rabKaiHuHM.SetChecked(true);}" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxCheckBox runat="server" ID="rabYinHangZH" Text="银行帐号" ClientInstanceName="rabYinHangZH" ClientVisible="false"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxTextBox runat="server" ID="txtYinHangZH" Width="100%" ClientVisible="false">
                                                        <ClientSideEvents GotFocus="function(s,e){rabYinHangZH.SetChecked(true);}" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                    </table>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                    <div style="float: right; width: 84%;">
                        <table style="width: 100%">
                            <tr>
                                <td runat="server" id="lsCountQN"></td>
                            </tr>
                        </table>
                        <dx:ASPxGridView ID="gvGrid1Tab2" SettingsBehavior-AllowSort="false" ClientInstanceName="gvGrid1Tab2" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH"
                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                            <Columns>
                            </Columns>
                            <ClientSideEvents FocusedRowChanged="function(s,e){ ChangeGD2();}" />
                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="500" />
                            <SettingsPager Mode="EndlessPaging" PageSize="100" />
                            <Settings ShowFooter="True" />
                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                        </dx:ASPxGridView>
                       <%-- <div style="display: none">
                            <dx:ASPxButton runat="server" ID="BtnQN2" Text="查询" ClientInstanceName="BtnQN2" UseSubmitBehavior="false" OnClick="BtnQN2_Click">
                            </dx:ASPxButton>
                        </div>
                        <dx:ASPxButton runat="server" ID="BtnExport1" Text="导出用户用水数据" ClientInstanceName="BtnExport1" UseSubmitBehavior="false">
                            <ClientSideEvents Click="function(s,e){btnExport2_2.OnClick();}" />
                        </dx:ASPxButton>


                        <dx:ASPxGridView ID="gvGrid2Tab2" SettingsBehavior-AllowSort="false" ClientInstanceName="gvGrid2Tab2" runat="server" Width="100%" KeyFieldName="S_M" ClientIDMode="AutoID" EnableCallBacks="true" OnCustomCallback="gvGrid2Tab2_CustomCallback">
                            <Columns>
                            </Columns>
                        </dx:ASPxGridView>--%>

                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>

        <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
            <%--<dx:ASPxButton ID="btnExport2_2" runat="server" ClientInstanceName="btnExport2_2" Text="导出EXCEL" OnClick="btnExport2_2_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>--%>
        </div>
    </form>
</body>
</html>
